package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmy.cultivate.entity.Area;
import com.xmy.cultivate.mapper.AreaMapper;
import com.xmy.cultivate.service.IAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 区域表 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-02-09
 */
@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements IAreaService {

    @Autowired
    AreaMapper areaMapper;

    @Override
    public List<Area> findByTypeForOne(){
        List<Area> areaList = areaMapper.findByTypeForOne("","");
        return areaList;
    }
}
